/*
 * @Author: jares
 * @Date: 2024-02-28 19:57:49
 * @LastEditors: jares
 * @LastEditTime: 2025-05-26 15:53:24
 * @Description:
 * 创建grid网格
 * Copyright (c) 2024 by jares, All Rights Reserved.
 */
// 定义Grid实例
class Grid {
	constructor(options = {}) {
		this.options = options
	}
	init() {
		const {
			top = 30,
			left = 20,
			right = 10,
			bottom = 10,
			containLabel = true,
			...extra
		} = this.options
		return {
			top,
			left,
			right,
			bottom,
			containLabel,
			...extra
		}
	}
}
const grid = (obj) => {
	return new Grid(obj).init()
}
export default grid
